package Enumeration;

import java.util.Vector;

public class Enumeration {
    public static void main(String[] args){
        java.util.Enumeration<String> days;
        Vector<String> daynames= new Vector<>();
//       StringBuffer dayNames = new StringBuffer();
        daynames.add("Sunday");
        daynames.add("Monday");
        daynames.add("Tuesday");
        daynames.add("Wendsday");
        daynames.add("Thurday");
        daynames.add("Friday");
        daynames.add("Saturday");
        days = daynames.elements();
        while(days.hasMoreElements()){
            System.out.println(days.nextElement());
        }
    }



}
